package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import com.huawei.appgallery.forum.section.actionbar.MenuLinearLayout;

public abstract class cae implements OnClickListener {
    protected ImageView ˊ;
    protected Drawable ˎ;
    protected int ˏ;

    public abstract int ˊ();

    public abstract int ˋ();

    public abstract int ˏ();

    public abstract int ॱ();

    public void ˊ(View view) {
    }

    public void ˎ() {
    }

    public void ˎ(Context context, MenuLinearLayout menuLinearLayout) {
        View inflate = View.inflate(context, ˏ(), menuLinearLayout);
        inflate.findViewById(ˊ()).setOnClickListener(new evx(this) {
            final /* synthetic */ cae ॱ;

            {
                this.ॱ = r1;
            }

            public void ˋ(View view) {
                this.ॱ.onClick(view);
            }
        });
        this.ˊ = (ImageView) inflate.findViewById(ˋ());
        if (this.ˊ != null) {
            this.ˎ = context.getResources().getDrawable(ॱ());
            this.ˊ.setBackground(this.ˎ);
            menuLinearLayout.ˋ(this);
        }
        ˊ(inflate);
    }

    public void ˏ(int i, float f) {
        if (this.ˊ != null) {
            this.ˊ.setBackground(epo.ॱ(this.ˎ, i));
        }
    }

    public View ᐝ() {
        return this.ˊ;
    }

    public void ˋ(int i) {
        this.ˏ = i;
    }
}
